﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Schwazzle.Core.Services;
using Schwazzle.Core.Model;

namespace Schwazzle.Test.Services
{
    public class FeedServiceTests
    {
        [Test]
        public void CreateFeedEntryTest()
        {
            IFeedService service = new RavenFeedService();
            string entryID = service.CreateFeedEntry("Test stuff", @"VAIOPONY\kev.000", DateTime.Now);
            Assert.IsTrue(!string.IsNullOrEmpty(entryID));
        }

        [Test]
        public void GetUsersFeedEntryTest()
        {
            IFeedService service = new RavenFeedService();
            IQueryable<FeedEntry> entries = service.GetUsersFeedEntry(@"VAIOPONY\kev.000");
            Assert.IsTrue(entries != null && entries.Count() > 0);
        }
    }
}
